package com.hl.client2.feignService;

import com.hl.client2.feignService.feignHystrix.FignHystrix;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient( value = "client", fallback = FignHystrix.class)
public interface FeignService {
    @RequestMapping(value = "/hello/{name}")
    public String hello(@PathVariable(value = "name") String name);
}
